<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::any('/login/index', '\App\backend\controllers\LoginController@index');
Route::any('/login/login', '\App\backend\controllers\LoginController@login');
Route::any('/login/getInfo', '\App\backend\controllers\LoginController@getInfo');
Route::any('/login/refreshCaptcha', '\App\backend\controllers\LoginController@refreshCaptcha');
Route::any('/login/logout', '\App\backend\controllers\LoginController@logout');

Route::group(['middleware' => ['authAdmin']], function () {
    Route::any('index', function () {
        //在shopRoute中间件重新匹配了路由
        return true;
    });
    return redirect('/');
});
